</head>
<body>

	<?php require("logo.php"); ?>
	
	<div id="Center_Structure">

	<fieldset id="tablematieres">
	<legend><?php echo $language[$_SESSION['lang']]["TOC"]; ?></legend>
		<span style="float:left;">
		<a href="./index.php"><img src="CSS/home.png" style="border:0; margin-bottom:-8px;"/>Index</a> |
		<a href="./locations.php"><?php echo $language[$_SESSION['lang']]["TOC_ourlocations"]; ?></a> |
		<!--<a href="./selection.php"><?php echo $language[$_SESSION['lang']]["TOC_advancedsearch"]; ?></a> |-->
		<!--<a href="./lastdays.php"><?php echo $language[$_SESSION['lang']]["TOC_lastday"]; ?></a> |-->
		<a href="./promos.php"><?php echo $language[$_SESSION['lang']]["TOC_specialoffers"]; ?></a> |
		
		<?php
		
		if (!isset($_SESSION['user']))
		{
			echo '<a href="./inscription.php">'.$language[$_SESSION['lang']]["TOC_register"].'</a> |';
		}
		
		?>
		
		<a href="./login.php"><?php echo $language[$_SESSION['lang']]["TOC_membersarea"]; ?></a>
		</span>
		<span id="connexionspan">
			<?php
			
			if (!isset($_SESSION['user']) || !isset($_SESSION['passhash']) || !isset($_SESSION['userRights']))
			{
				echo $language[$_SESSION['lang']]["TOC_notlogged"].'<br />
				<a href="login.php">'.$language[$_SESSION['lang']]["TOC_login"].'</a>';
			}
			else
			{
				echo $language[$_SESSION['lang']]["TOC_loggedas"].' : '.$_SESSION['user'].' ('.$_SESSION['userRights']->label.')<br />
				<a href="logout.php">'.$language[$_SESSION['lang']]["TOC_logout"].'</a>';
			}
			
			?>
		</span>
	</fieldset>
	<div id="langselector">
	
	<form method="get" class="langform">
	
	<?php
		foreach ($_GET as $name => $value)
		{
			echo '<input type="hidden" name="'.$name.'" value="'.$value.'" />';
		}
	?>
	<input type="hidden" name="language" value="En" />
	<input type="image" src="CSS/english.png" />
	</form>
	
	<form method="get" class="langform">
	
	<?php
		foreach ($_GET as $name => $value)
		{
			echo '<input type="hidden" name="'.$name.'" value="'.$value.'" />';
		}
	?>
	<input type="hidden" name="language" value="Fr" />
	<input type="image" src="CSS/french.png" />
	
	</form>
	
	</form>
	</div>
	
	<?php echo $Ariane; ?>
